package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.sl.au.entity.Root;

@Entity
@Table(name = "sl_wcsi_News")
public class News extends Root{

	@Column(nullable = true,length=20000)
	private String newsContent;//新闻内容
	
	@Column(name="newsTitle" ,nullable = true)
	private String newsTitle;//新闻标题

	@Column(name="newsPicture" ,nullable = true)
	private String newsPicture;//新闻图片

	@Column(name="newsDescribe" ,nullable = true)
	private String newsDescribe;//描述
	
	
	
	@OneToOne
	@JoinColumn(name = "userId",nullable = true)
	private User user;//新闻发布者

	public String getNewsContent() {
		return newsContent;
	}

	public void setNewsContent(String newsContent) {
		this.newsContent = newsContent;
	}

	public String getNewsTitle() {
		return newsTitle;
	}

	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}
	
	public String getNewsPicture() {
		return newsPicture;
	}

	public void setNewsPicture(String newsPicture) {
		this.newsPicture = newsPicture;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getNewsDescribe() {
		return newsDescribe;
	}

	public void setNewsDescribe(String newsDescribe) {
		this.newsDescribe = newsDescribe;
	}

}
